<template>
  <div class="userinfo" id="user-info">
      <a href="javascript:;" class="clear-fix">
      <slot name="user-icon">
        <svg class="privateImage-svg">
          <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#avatar-default"></use>
        </svg>
      </slot>
      <div class="login-info">
        <slot name="user-nickname">
          <div class="login-reg">登录/注册</div>
        </slot>
        <div class="phone">
          <span>
            <svg data-v-735ff1be="" fill="#fff" class="icon-mobile"><use data-v-735ff1be="" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#mobile"></use></svg>
          </span>
          <slot name="user-phone">暂无绑定手机号</slot>
        </div>
      </div>
      <svg data-v-735ff1be="" fill="#fff" class="arrow-svg"><use data-v-735ff1be="" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#arrow-right"></use></svg>
    </a>
  </div>
</template>

<script>
  export default {
    name:"UserInfo"
  }
</script>

<style scoped>
  #user-info {
    background-color: #ff8198;
    padding: 15px;
    margin-top: 44px;
  }

  #user-info a {
    display: flex;
    align-items: center;
  }

  #user-info .privateImage-svg {
    width: 70px;
    height: 70px;
    background-color: #fff;
    border-radius: 50%;
  }

  #user-info .login-info {
    flex:1;
  }

  #user-info .arrow-svg {
    width: 16px;
    height: 22px;
  }

  #user-info .login-info {
    color: #fff;
    margin-left: 10px;
    font-size: 18px;
  }

  #user-info .login-info .login-reg {
    margin-bottom: 8px;
  }

  #user-info .login-info .phone {
    position: relative;
    font-size: 14px;
    font-weight: 300;
    margin-left: 15px;
    padding-left: 5px;
  }

  .login-info .phone .icon-mobile {
    position: absolute;
    top: 0;
    left: -16px;
    width: 18px;
    height: 20px;
  }
</style>